/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.mvc.asociaciones;

import com.beans.AsociacionBean;
import com.gestores.GestionAsociaciones;
import com.mvc.RequestHandler;
import java.io.IOException;
import javax.naming.NamingException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 *
 * @author victor
 */
public class ConsultarAsociacion  implements RequestHandler{

    public void handleRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException, NamingException {
        System.out.println("[ConsultarAsociacion]");
        String id=request.getParameter("idAsociacion");
        
        GestionAsociaciones gestor=GestionAsociaciones.getInstance();
        
        AsociacionBean asociacion=gestor.consultaAsociacion(id);
        
        request.setAttribute("asociacion", asociacion);
        
        
    }
    
}
